This command adds new item to menu that user later opens on the screen using <menu_show> command.
Syntax:
<menu_additem>("ItemName","ItemId")
ItemName
Name of the item as it shows in the menu. To add submenu items insert æ.Æ
(dot) to begin of the item name. To specify end of the submenu, insert just æ.Æ
Item. To underline a specific character within the item, insert æ&Æ character
right before it.
ItemId
This is optional parameter. If it is supplied, the
<menushow> command returns this ItemId
rather than ItemName.
Example:
<#> This macro will show how to use 'menu_additem'
<#> and 'menu_show' commands
<cmds>
<menu_additem>("White")
<menu_additem>("Gray")
<menu_additem>("Black")
<menu_additem>(".RGB")
<menu_additem>(".Red")
<menu_additem>(".Green")
<menu_additem>(".Blue")
<menu_additem>(".")
<menu_show>(-1,-1,vColor,1,1)
<if_str>("vColor != NO")
<msg>(-100,-100,"Selected item is: %vColor%","Message",1)
<endif>